﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ORMAC.Attributes;

namespace ORMAC.CodeGen
{
    [Table("sys.Types")]
    public class TypeInfo
    {
        [PrimaryKey]
        [Field("system_type_id")]
        public int TypeID { get; set; }

        [Field("name")]
        public string Name
        {
            get;
            set;
        }
        private bool isSQLType;
        [ORMAC(AutoLoad = false)]
        public bool IsSqlType
        {
            get
            {
                return isSQLType;
            }
            set
            {
                isSQLType = value;
            }
        }
        public TypeInfo()
        {
            isSQLType = true;
        }
    }
}
